<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<t:wrapper title="Register User">
	<jsp:body>
		<p><spring:message code="register_user.body.description"/></p>
		<form method="post" action="/three2learn/modify_user" id="register-user">
		
			<input type="hidden" name="userID" value="${user.id}"/>
		
			<label><spring:message code="register_user.first_name"/></label>
				<input type="text" name="first_name" value="${user.firstName}"/>
				
			<label><spring:message code="register_user.last_name"/></label>
				<input type="text" name="last_name" value="${user.lastName}"/>
			
			<label><spring:message code="register_user.phone_number"/></label>
				<input type="text" name="phone_number" value="${user.phoneNumber}"/>
			
			<label><spring:message code="register_user.country"/></label>
				<input type="text" name="country" value="${user.country}"/>
			
			<label><spring:message code="register_user.city"/></label>
				<input type="text" name="city" value="${user.city}"/>
			
			<label><spring:message code="register_user.street"/></label>
				<input type="text" name="street" value="${user.street}"/>
			
			<label><spring:message code="register_user.house_number"/></label>
				<input type="number" name="house_number" value="${user.houseNumber}"/>
			
			<label><spring:message code="register_user.postal"/></label>
				<input type="text" name="postal" value="${user.postal}"/>
			
			<label></label><button type="submit" onclick='this.form.action="disable_user"'>
				<spring:message code="modify_user.disable"/>
			</button>
			
			<label></label><button type="submit">
				<spring:message code="register_user.submit"/>
			</button>
			 
		</form>
	</jsp:body>
</t:wrapper>